package com.zerosky.crm.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

import com.zerosky.crm.dao.OaMenuDAO;
import com.zerosky.crm.po.OaMenu;
import com.zerosky.crm.service.MenuService;

@Service(value="menuService")
public class MenuServiceImpl implements MenuService {
	@Autowired
	private OaMenuDAO oaMenuDao;

	@Override
	@Transactional(propagation = Propagation.NOT_SUPPORTED) // 不开启事务
	public List<OaMenu> getMenuList() {
		return oaMenuDao.getMenuList();
	}

	@Override
	@Transactional(propagation = Propagation.NOT_SUPPORTED) // 不开启事务
	public OaMenu getMenuById(String id) {
		return oaMenuDao.getMenuById(id);

	}

}
